View Javadoc
1 /*
2 * Created by IntelliJ IDEA.
3 * User: jbirchfield
4 * Date: Aug 19, 2002
5 * Time: 1:56:29 PM
6 * To change template for new class use
7 * Code Style | Class Templates options (Tools | IDE Options).
8 */
9 package net.plugin.sql.util;
10
11 import net.plugin.sql.beans.TableInfo;
12
13 import java.util.Comparator;
14
15 public class TableInfoComparator implements Comparator {
16
17 public int compare(Object o1, Object o2) {
18 if (o1 instanceof TableInfo && o2 instanceof TableInfo) {
19 TableInfo ti1 = (TableInfo) o1;
20 TableInfo ti2 = (TableInfo) o2;
21 if (ti1.getTableName() != null && ti2.getTableName() != null)
22 return ti1.getTableName().compareTo(ti2.getTableName());
23 }
24 return 0;
25 }
26
27 }
This page was automatically generated by Maven